package com.gt.self.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gt.self.domain.UsBookPat;
import com.gt.self.domain.vo.ReportParamVo;
import com.gt.self.mapper.UsBookPatMapper;
import com.gt.self.service.UsBookPatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UsBookPatServiceImpl extends ServiceImpl<UsBookPatMapper, UsBookPat> implements UsBookPatService {

    @Autowired
    private UsBookPatMapper usBookPatMapper;

    @Override
    public UsBookPat queryByPatientId(ReportParamVo reportParamVo) {
        return usBookPatMapper.queryByPatientId(reportParamVo);
    }

    @Override
    public UsBookPat getDevCardNo(String checkData, String checkTypeNo, Integer yuci) {
        return usBookPatMapper.getDevCardNo(checkData, checkTypeNo, yuci);
    }

    @Override
    public int updateBookPat(UsBookPat usBookPat) {
        return usBookPatMapper.updateBookPat(usBookPat);
    }

    @Override
    public int getWaitNum(String checkData, String checkTypeNo, Integer yuci) {
        return usBookPatMapper.getWaitNum(checkData, checkTypeNo, yuci);
    }

    @Override
    public String checkTypeNo(String checkType) {
        return usBookPatMapper.checkTypeNo(checkType);
    }

    @Override
    public UsBookPat queryByApplyBillNo(String regNo) {
        return usBookPatMapper.queryByApplyBillNo(regNo);
    }

    @Override
    public int insertBookPat(UsBookPat usBookPat) {
        return usBookPatMapper.insertBookPat(usBookPat);
    }

}
